//
//  AdViewController.m
//  ebook
//
//  Created by 吴超飞 on 2016/11/10.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "AdViewController.h"
#import "UIButton+WebCache.h"
#import "WebViewController.h"
#import "SplashSDK.h"
#import "StatSDK.h"

@interface AdViewController ()<SplashSDKDelegate>

@property (nonatomic, assign) BOOL isFromBackground;

@end

@implementation AdViewController

-(instancetype)initIsFromBackground:(BOOL)isbg{
    
    if(self = [super init]){
        _isFromBackground = isbg;
    }
    return self;
}

- (void)viewDidLoad {
    
    [super viewDidLoad];
//    [self loadTanvAd];
    [AdViewManager showAdOnController:self isFromBackgroud:_isFromBackground];
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    
    return UIInterfaceOrientationMaskPortrait;
}

- (BOOL)prefersStatusBarHidden {
    
    return YES;
}

- (void)didReceiveMemoryWarning {
    
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)dealloc{
    
    MTLog(@"广告Controller dealloc");
}

@end
